package org.judo.admin.identity;

import org.judo.propertyobject.PropertyObject;
import java.util.*;

public class UserRole extends PropertyObject 
{
	private int userid ;
	private int roleid ;
	private int userroleid ;

	public boolean equals(Object obj)
	{
		if (!(obj instanceof UserRole))
			return false;
		
		UserRole ur = (UserRole)obj;
		
		if (ur.getUserroleid() == userroleid)
			return true;
		else
			return false;
	}
	
	public UserRole(int userid,int roleid)
	{
		this.userid = userid;
		this.roleid = roleid;
	}
	
	public void setUserid(int userid) 
	{
		this.userid = userid;
	}

	public int getUserid() 
	{
		return this.userid;
	}

	public void setRoleid(int roleid) 
	{
		this.roleid = roleid;
	}

	public int getRoleid() 
	{
		return this.roleid;
	}

	public void setUserroleid(int userroleid) 
	{
		this.userroleid = userroleid;
	}

	public int getUserroleid() 
	{
		return this.userroleid;
	}

}
